define(['js-logger','underscore','backbone','jquery'], function(Logger){
"use strict";
	
	Logger.useDefaults();
	var logger = Logger.get('Control');
	logger.setLevel(Logger.DEBUG);
	
	var Control = {};
	
	Control.Views = {};
	
	Control.Router = Backbone.Router.extend({
		initialize: function () {
		},
		
		routes: {
			"" : "defaultRoute",
			":id/" : "index",
			"*path": "defaultRoute"
		},
		
		/**
		 * Routing function. Sets the current MarketLocale code to the menu view.
		 * Set a subview to the global view, then renders it.
		 * @param id The current MarketLocale's code
		 */
		index: function(id) {
			logger.debug("Router",id);
		},
		
		defaultRoute: function(path) {
			this.navigate('#company', { trigger: true, replace: true });
		}
	});
	
	Control.run = function (options) {
		logger.debug("HELLO CONTROL");
		var router = new Control.Router();
		Backbone.history.start();
	};
	
	return Control;
});